package com.mdd.front.validate.zdjd;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.util.Date;
import java.util.Date;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 设备参数
 * @author LikeAdmin
 */
@Data
@ApiModel("设备更新参数")
public class TZdjdDeviceUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Long id;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "")
    private String name;

    @NotNull(message = "deviceUuid参数缺失")
    @ApiModelProperty(value = "设备回传回来的唯一ID")
    private String deviceUuid;

    @NotNull(message = "deviceCode参数缺失")
    @ApiModelProperty(value = "设备编码/设备型号")
    private String deviceCode;

    @NotNull(message = "softwareVersion参数缺失")
    @ApiModelProperty(value = "软件版本号")
    private String softwareVersion;

    @NotNull(message = "hardwareVersion参数缺失")
    @ApiModelProperty(value = "硬件版本号")
    private String hardwareVersion;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "最新运行状态（0：待机；1：运行中；2：故障停机；3：保温；）")
    private Integer status;

    @NotNull(message = "agentId参数缺失")
    @ApiModelProperty(value = "代理商id")
    private Long agentId;

    @NotNull(message = "agentName参数缺失")
    @ApiModelProperty(value = "代理商名称")
    private String agentName;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value = "类型（1：单灶；2：双灶；）")
    private Integer type;

    @NotNull(message = "year参数缺失")
    @ApiModelProperty(value = "年")
    private String year;

    @NotNull(message = "month参数缺失")
    @ApiModelProperty(value = "月")
    private String month;

    @NotNull(message = "day参数缺失")
    @ApiModelProperty(value = "日")
    private String day;

    @NotNull(message = "runTotalTime参数缺失")
    @ApiModelProperty(value = "总运行时长（分钟）")
    private Long runTotalTime;

    @NotNull(message = "totalEnergyConsumption参数缺失")
    @ApiModelProperty(value = "能耗总量")
    private Long totalEnergyConsumption;

}
